package com.gec.system.controller;


import com.gec.system.annotation.MyLog;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@Api(tags = "注解测试")
@RestController
@RequestMapping("/admin/system/")
public class AhelloController {

    @MyLog(title = "方法名：你好",methodName = "测试日志",businessType = MyLog.BusinessType.INSERT)
    @ApiOperation("注解测试")
    @GetMapping("/hello")
    public String hello(){
//        int i = 1/0;
        return "hello";
    }
}
